import request from "@/utils/request";

// 查询路线详情
export function getRouteInfo(data) {
  return request({
    url: "/route/travelRoute/getRouteInfo",
    method: "get",
    params:data,
  });
}

// 查询路线信息
export function getRouteTripInfo(data) {
  return request({
    url: "/route/travelRoute/getRouteTripInfo",
    method: "get",
    params:data,
  });
}

// 查询路线信息
export function getRouteTravelMsg(data) {
  return request({
    url: "/route/travelRoute/getRouteTravelMsg",
    method: "get",
    params:data,
  });
}

// 查询附近村庄
export function getTravelMsg(data) {
  return request({
    url: "/route/travelRoute/getTravelMsg",
    method: "get",
    params:data,
  });
}

// 查询附近村庄
export function collectTravel(data) {
  return request({
    url: "/route/travelRoute/collectTravel",
    method: "post",
    data:data,
  });
}

// 签名获取
export function getWxJsSdk(data) {
  return request({
    url: "/wechat/getWxJsSdk",
    method: "get",
    params:data,
  });
}

export function startTraveling(data){
  return request({
    url: '/route/village/useTravel',
    method: "post",
    data:data,
  });
}


